import request from './index'

export function selectUserList(currentPage, pageSize) {
    return request({
        url: '/user/selectUserList',
        headers: {
            repeatSubmit: false
        },
        method: 'post',
        data: { currentPage, pageSize }
    })
}


export function userInsert(userInfo) {
    return request({
        url: '/user/insert',
        headers: {
            repeatSubmit: false
        },
        data: userInfo,
        method: 'post'
    })
}

export function userDelete(userId) {
    return request({
        url: '/user/delete/' + userId,
        headers: {
            repeatSubmit: false
        },
        method: 'get'
    })
}